#ifndef _COLOR_H
#define _COLOR_H

#include <opencv2/core/core.hpp>
#include <opencv2/opencv.hpp>
using namespace cv;
typedef Vec3b ColorRGB;
typedef Vec3f ColorRGBf;
typedef Vec3f ColorLab;
void ImgBGR2Lab(void* pu8Src,int height,int width,void *pf32Dst);
void ImgLab2BGR(void* pf32Src,int height,int width,void *pu8Dst);
void RGB2Lab_pixel(uchar R, uchar G, uchar B,float* pDst);
void Lab2BGR_pixel(void* pf32Src, void *pu8Dst);
void CalcDaAndDb(void* pf32Src, int height, int width,float* Da, float* Db);
void CalcMaAndMb(void* pf32Src, int height, int width,float Da, float Db, float* Ma, float* Mb);
void ColorCorrect(void* pf32Src, int height, int width,float Da, float Db);

#endif